/* Request ID: 2dacb194ededaee477d4e94668a94a3d (05/08/2024 10:54pm) (tc9NTsQwDAXgq7CbxeCGvwuwYT37ERq5iUkNjl3FCb0+peIIZGdbT/70wmKFQiEVC9u2TcfkcTGTyWoOa5+F421pRcKNNVdKTNo8tIUKechiM0rwWHndrw/wsce/KmQUocrkIIZp+vT7u/C/1COgakd565ouWBtHXrGx6RhMsdClmnaNfDCvPbGNsZqtu/fNeVifJ2C3naERz5+h2MxC0HAW8hHEC2Sz/EtUVBdsQ4pgSpTgbxsBRBTShBVi92blIE5nvPL7+fQD) */ /* Resource ID: 0f154a56dab58aed4ba95f1c7a7 (0-flickr-galleries-load.js, minified by uglifyjs) (04/09/2024 3:41pm) (A:1464, G:931, K:931) */ (function(e,s,i){var l=e(".flickr-galleries"),t="/_flickr/load_albums.php",c="https://www.flickr.com/photos/menlophoto/albums/";if(l.length){var o=[],a=[],d=[];e.getJSON(t,function(s){if(s!=null){e.each(s.photosets.photoset,function(s,i){if(i.description._content==""){var e=i.title._content.replace(/^\d+\-\d+\s*/,"");o.push(e)}else{o.push(i.description._content)}a.push(c+i.id);d.push(i.primary_photo_extras.url_m)});for(var i=0;i
'+o[i]+"
")}}})}})(livewhale.jQuery,window,document); /* Resource ID: e29adc1e3c73e2587af3427407b (1-annualFundParticipation.js) (04/09/2024 3:41pm) (A:10615, K:10615) */ /** * circles - v0.0.6 - 2015-05-27 * * Copyright (c) 2015 lugolabs * Licensed */ !function(){"use strict";var a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){setTimeout(a,1e3/60)},b=window.Circles=function(a){var b=a.id;if(this._el=document.getElementById(b),null!==this._el){this._radius=a.radius||10,this._duration=void 0===a.duration?500:a.duration,this._value=0,this._maxValue=a.maxValue||100,this._text=void 0===a.text?function(a){return this.htmlifyNumber(a)}:a.text,this._strokeWidth=a.width||10,this._colors=a.colors||["#EEE","#F00"],this._svg=null,this._movingPath=null,this._wrapContainer=null,this._textContainer=null,this._wrpClass=a.wrpClass||"circles-wrp",this._textClass=a.textClass||"circles-text",this._valClass=a.valueStrokeClass||"circles-valueStroke",this._maxValClass=a.maxValueStrokeClass||"circles-maxValueStroke",this._styleWrapper=a.styleWrapper===!1?!1:!0,this._styleText=a.styleText===!1?!1:!0;var c=Math.PI/180*270;this._start=-Math.PI/180*90,this._startPrecise=this._precise(this._start),this._circ=c-this._start,this._generate().update(a.value||0)}};b.prototype={VERSION:"0.0.6",_generate:function(){return this._svgSize=2*this._radius,this._radiusAdjusted=this._radius-this._strokeWidth/2,this._generateSvg()._generateText()._generateWrapper(),this._el.innerHTML="",this._el.appendChild(this._wrapContainer),this},_setPercentage:function(a){this._movingPath.setAttribute("d",this._calculatePath(a,!0)),this._textContainer.innerHTML=this._getText(this.getValueFromPercent(a))},_generateWrapper:function(){return this._wrapContainer=document.createElement("div"),this._wrapContainer.className=this._wrpClass,this._styleWrapper&&(this._wrapContainer.style.position="relative",this._wrapContainer.style.display="inline-block"),this._wrapContainer.appendChild(this._svg),this._wrapContainer.appendChild(this._textContainer),this},_generateText:function(){if(this._textContainer=document.createElement("div"),this._textContainer.className=this._textClass,this._styleText){var a={position:"absolute",top:0,left:0,textAlign:"center",width:"100%",fontSize:.7*this._radius+"px",height:this._svgSize+"px",lineHeight:this._svgSize+"px"};for(var b in a)this._textContainer.style[b]=a[b]}return this._textContainer.innerHTML=this._getText(0),this},_getText:function(a){return this._text?(void 0===a&&(a=this._value),a=parseFloat(a.toFixed(2)),"function"==typeof this._text?this._text.call(this,a):this._text):""},_generateSvg:function(){return this._svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._svg.setAttribute("xmlns","http://www.w3.org/2000/svg"),this._svg.setAttribute("width",this._svgSize),this._svg.setAttribute("height",this._svgSize),this._generatePath(100,!1,this._colors[0],this._maxValClass)._generatePath(1,!0,this._colors[1],this._valClass),this._movingPath=this._svg.getElementsByTagName("path")[1],this},_generatePath:function(a,b,c,d){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("fill","transparent"),e.setAttribute("stroke",c),e.setAttribute("stroke-width",this._strokeWidth),e.setAttribute("d",this._calculatePath(a,b)),e.setAttribute("class",d),this._svg.appendChild(e),this},_calculatePath:function(a,b){var c=this._start+a/100*this._circ,d=this._precise(c);return this._arc(d,b)},_arc:function(a,b){var c=a-.001,d=a-this._startPrecise'+d[0]+"";return d.length>1&&(e+='.'+d[1].substring(0,2)+""),e},updateRadius:function(a){return this._radius=a,this._generate().update(!0)},updateWidth:function(a){return this._strokeWidth=a,this._generate().update(!0)},updateColors:function(a){this._colors=a;var b=this._svg.getElementsByTagName("path");return b[0].setAttribute("stroke",a[0]),b[1].setAttribute("stroke",a[1]),this},getPercent:function(){return 100*this._value/this._maxValue},getValueFromPercent:function(a){return this._maxValue*a/100},getValue:function(){return this._value},getMaxValue:function(){return this._maxValue},update:function(b,c){if(b===!0)return this._setPercentage(this.getPercent()),this;if(this._value==b||isNaN(b))return this;void 0===c&&(c=this._duration);var d,e,f,g,h=this,i=h.getPercent(),j=1;return this._value=Math.min(this._maxValue,Math.max(0,b)),c?(d=h.getPercent(),e=d>i,j+=d%1,f=Math.floor(Math.abs(d-i)/j),g=c/f,function k(b){if(e?i+=j:i-=j,e&&i>=d||!e&&d>=i)return void a(function(){h._setPercentage(d)});a(function(){h._setPercentage(i)});var c=Date.now(),f=c-b;f>=g?k(c):setTimeout(function(){k(Date.now())},g-f)}(Date.now()),this):(this._setPercentage(this.getPercent()),this)}},b.create=function(a){return new b(a)}}(); /* Annual Fund Particiation */ (function() { // get tag element var $aFPCircles = $("#afpcircles"); if ($aFPCircles.length > 0) { //Set "as of" date // var asOfDate = "November 1, 2021"; var asOfDate = $aFPCircles.attr('data-date'); //Set total participation // var totalParticipation = 60; var totalParticipation = $aFPCircles.attr('data-total-participation'); var allParticipation = $aFPCircles.attr('data-all-participation'); var classYearParticipation = {}; var participationArray = allParticipation.split(';'); $.each(participationArray, function(index, value) { var thisValue = value.split(','); if (thisValue.length == 2) { classYearParticipation[$.trim(thisValue[0])] = $.trim(thisValue[1]); } }); //Add circle and chart to page $aFPCircles.append('

As of '+asOfDate+'




'); //Create total participation circle var totalCircle = Circles.create({ id: 'total-participation', radius: 120, value: 0, width: 15, text: function(value){return value + '%';}, colors: ['#eee', '#FFA747'], duration: 1000, wrpClass: 'circles-wrp', textClass: 'circles-text', valueStrokeClass: 'circles-valueStroke', maxValueStrokeClass: 'circles-maxValueStroke' }); //Update the value of the total participation circle when it's visible on the screen $(window).on('scroll load', function(event){ if ($('#total-participation').visible(true)) { setTimeout(function() { totalCircle.update(totalParticipation); }, 500); } }); //Add ChartJS to page and build participation chart by class year //$.getScript("https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.min.js", function(){ $.getScript("https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.0/Chart.min.js", function(){ var dataArray = []; for (var key in classYearParticipation) { if (classYearParticipation.hasOwnProperty(key)) { dataArray.push(classYearParticipation[key]); } } var data = { //labels: ["2016", "2017", "2018", "2019", "2020", "2021", "2022"], labels: Object.keys(classYearParticipation), datasets: [ { backgroundColor: [ "#FFA747", "#FFA747", "#FFA747", "#FFA747", "#FFA747", "#FFA747", "#FFA747", "#0047A9", "#0047A9", "#0047A9" ], // strokeColor: "#ffffff", // highlightFill: "#0047A9", //data: [58, 55, 58, 43, 72, 52, 66] //data: dataArray data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] //data: Object.values(classYearParticipation) } ] }; /*var options = { scaleShowGridLines : false, scaleLineColor: "#aaa", barStrokeWidth : 1, scaleLabel: "<%=value%>%", tooltipTemplate: "<%if (label){%><%=label%>: <%}%><%= value %>%", tooltipCornerRadius: 3, scaleOverride: true, scaleSteps: 4, scaleStepWidth: 25, scaleStartValue: 0 };*/ var ctx = $("#class-year-chart").get(0).getContext("2d"); var myBarChart = new Chart(ctx, { type: 'bar', data: data, options: { legend: { display: false }, tooltips: { cornerRadius: 3, displayColors: false, callbacks: { label: function(tooltipItem, data) { return tooltipItem.yLabel + '%'; } } }, scales: { yAxes: [{ ticks: { beginAtZero:true, max: 100, stepSize: 20, callback: function(value, index, values) { return value.toString() + '%'; } }, gridLines: { display: true } }], xAxes: [{ ticks: { stepSize: 1, autoSkip: false }, gridLines: { display: false } }] }, } }); //Update the value of the class participation chart when it's visible on the screen $(window).on('scroll load', function(event){ if ($('#class-year-chart').visible(true)) { for (var i = 0; i < dataArray.length; i++) { myBarChart.data.datasets[0].data[i] = dataArray[i]; } setTimeout(function() { myBarChart.update(); }, 500); } }); }); //jQuery plugin to check if an element is visible on the screen $.fn.visible = function(partial) { var $t = $(this), $w = $(window), viewTop = $w.scrollTop(), viewBottom = viewTop + $w.height(), _top = $t.offset().top, _bottom = _top + $t.height(), compareTop = partial === true ? _bottom : _top, compareBottom = partial === true ? _top : _bottom; return ((compareBottom <= viewBottom) && (compareTop >= viewTop)); }; } })(); /* Resource ID: c44bb3e1d1cbd559f0b97ee8410 (1-namePronunciationAudio.js, minified by uglifyjs) (04/09/2024 3:41pm) (A:1013, G:727, K:727) */ (function(e){if(e(".employee-name-audio").length>0){var a="https://fortress.menloschool.org/public/about-me/pronounce-name/"+e(".employee-name-audio").data("audioFileId");if(a){var n=new Audio(a),d=e(".employee-name-audio").find("span.play"),o=e(".employee-name-audio").find("span.stop");n.addEventListener("ended",function(){o.addClass("hidden");d.removeClass("hidden");n.currentTime=0});n.addEventListener("canplaythrough",function(){e(".employee-name-audio").removeClass("transparent")})}e(".employee-name-audio").click(function(e){event.preventDefault();if(o.hasClass("hidden")){d.addClass("hidden");o.removeClass("hidden");n.play()}else{o.addClass("hidden");d.removeClass("hidden");n.pause();n.currentTime=0}})}})(jQuery); /* Resource ID: c32d1c6e2d9a7c0d5b71f3940b7 (1-top-navigation.js, minified by uglifyjs) (04/09/2024 3:41pm) (A:1438, G:1221, K:1221) */ (function(n,a){var t=n("body"),i=n(window);n("#main-navigation > ul > li").each(function(){n(this).attr("data-nav-section",n(this).children("a").text().replace(/\s+/g,"-").toLowerCase())});n(".nav-sub-page ul > li > ul.lw_subnav").parent().addClass("has-dropdown");n(".nav-sub-page ul.lw_subnav").wrap('');n(".nav__dropdown-body").each(function(){var a=n(this).attr("data-megamenu");var t=n('#main-navigation > ul > li[data-nav-section="'+a+'"] ul').html();n(this).find("ul.nav__dropdown-list-links").prepend(t);n(this).find("ul.lw_subnav").remove();n(this).find("a").prepend('')})})(livewhale.jQuery,livewhale); /* Resource ID: febaf8afca6f63c864e3a550c0e (2-isotope.js) (04/09/2024 3:41pm) (A:35248, K:35248) */ /*! * Isotope PACKAGED v3.0.6 * * Licensed GPLv3 for open source use * or Isotope Commercial License for commercial use * * https://isotope.metafizzy.co * Copyright 2010-2018 Metafizzy */ !function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,s,a){function u(t,e,o){var n,s="$()."+i+'("'+e+'")';return t.each(function(t,u){var h=a.data(u,i);if(!h)return void r(i+" not initialized. Cannot call methods, i.e. "+s);var d=h[e];if(!d||"_"==e.charAt(0))return void r(s+" is not a valid method");var l=d.apply(h,o);n=void 0===n?l:n}),void 0!==n?n:t}function h(t,e){t.each(function(t,o){var n=a.data(o,i);n?(n.option(e),n._init()):(n=new s(o,e),a.data(o,i,n))})}a=a||e||t.jQuery,a&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=n.call(arguments,1);return u(this,t,e)}return h(this,t),this},o(a))}function o(t){!t||t&&t.bridget||(t.bridget=i)}var n=Array.prototype.slice,s=t.console,r="undefined"==typeof s?function(){}:function(t){s.error(t)};return o(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return o.indexOf(e)==-1&&o.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},o=i[t]=i[t]||{};return o[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return o!=-1&&i.splice(o,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var o=this._onceEvents&&this._onceEvents[t],n=0;n